Display the task's current position in the queue - #614
Open
julien-nc wants to merge 5 commits into
Open
Conversation
julien-nc
force-pushed
the
enh/noid/queue-position
branch
from
July 27, 2026 10:36
4e0f58c to
fc2090d
Compare
marcelklehr
reviewed
Aug 5, 2026
marcelklehr
reviewed
Aug 5, 2026
marcelklehr
reviewed
Aug 5, 2026
| } | ||
| this.loading = false | ||
| this.showSyncTaskRunning = false | ||
| this.taskPosition = null |
Member
There was a problem hiding this comment.
Should we call cancelTaskPositionPolling() here?
Member
Author
There was a problem hiding this comment.
We could but we don't need to. When the task status is not SCHEDULED anymore, the "get task position" endpoint will return a 412 code and the polling function will reject the promise and stop polling.
But cancelling as early as possible could save one network request. Let's do it.
Check my last commit. It cancels the position polling when we stop polling the task itself.
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…holder Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
julien-nc
force-pushed
the
enh/noid/queue-position
branch
from
August 17, 2026 08:38
fc2090d to
8843543
Compare
…PollPositionTimerId so pollPositionOnce does not exit and reject the promise Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
… chat UI Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…inished or failed) Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Poll the selected task's position every 5 seconds. Display it in the "loading" empty content.
Todo
🤖 AI (if applicable)